
package com.pp.admin.common.client.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.pp.admin.common.client.beans.LoginUserInfo;
import com.pp.admin.common.client.exceptions.DomainAuthException;
import com.pp.admin.common.client.exceptions.InvalidUserException;
import com.pp.admin.common.client.exceptions.UserIsNotLogedIn;

@RemoteServiceRelativePath( "login" )
public interface LoginService extends RemoteService {
	
	LoginUserInfo login( String userID, String password, String domain ) throws InvalidUserException, DomainAuthException;
	
	LoginUserInfo isUserLogedIn( String domainID ) throws DomainAuthException, UserIsNotLogedIn;
	
	void logOut();
	
	void createUser( String domain );
}
